//
//  LoanMacro.h
//  Loan
//
//  Created by wangan on 2017/11/8.
//  Copyright © 2017年 hejinhui. All rights reserved.
//

#ifndef LoanMacro_h
#define LoanMacro_h

#define WeakSelf __weak typeof(self) weakSelf = self;

// MainScreen Height&Width
#define Screen_Height      [[UIScreen mainScreen] bounds].size.height
#define Screen_Width       [[UIScreen mainScreen] bounds].size.width

//颜色
#define RGB_HB(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]
#define RGBA_HB(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
#define UIColorFromHex_HB(hex) [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16))/255.0 green:((float)((hex & 0xFF00) >> 8))/255.0 blue:((float)(hex & 0xFF))/255.0 alpha:1.0]
//字符串拼接
#define SF(formart)  [NSString stringWithFormat:formart]

#define IMG(name) [UIImage imageNamed:name]

//字体
#define Font(x)   [UIFont systemFontOfSize:x]

#endif /* LoanMacro_h */
